<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreatePayLogTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('pay_logs', function (Blueprint $table) {
            $table->increments('id');
            $table->string('trade_no', 50)->default('')->comment('交易订单编号');
            $table->string('content', 10000)->default('')->comment('日志内容');
            $table->tinyInteger('log_type')->default(0)->comment('日志类型：1请求参数（request)、2通知响应值（response）、3异常日志信息');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('pay_logs');
    }
}
